package file;

import java.text.SimpleDateFormat;
import java.time.Instant;
import java.time.ZoneOffset;
import java.util.Calendar;
import java.util.Date;
import java.util.Locale;
import java.util.TimeZone;

/**
 * @author guoqf
 */
public class CalenderUtils {
    public static void main(String[] args) {
        Calendar calendar = Calendar.getInstance(Locale.US);

        calendar.set(2099, Calendar.JANUARY, 1, 0, 0, 0);
        Date time = calendar.getTime();
        System.out.println(time);
        System.out.println(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(time));

    }
}
